package com.billjc.activity.util;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class DateFormatUtil {

	private static final String PATTERN_ONE = "yyyy-MM-dd HH:mm:SSS";

	public static String timeToString(LocalDateTime local) {
		DateTimeFormatter formatter = DateTimeFormatter.ofPattern(PATTERN_ONE);
		String timeString = local.format(formatter);
		return timeString;
	}
}
